package cn.initcap.concurrency.annoations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 声明注解{@Target}指注解作用的目标{@Retention(指定作用)}：RetentionPolicy.SOURCE为运行时忽略
 * <p>
 * 用来标记【线程安全】的类或者写法
 *
 * @author initcap
 * @date Created in 2018/6/13 PM5:43.
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface ThreadSafe {

    String value() default "";

}
